﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register.aspx.cs" Inherits="register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Label ID="Label1" runat="server" Text="Register"/>
    <hr/>
    <div>
    用户名：  <asp:TextBox ID="TextBox1" runat="server"/>
    <asp:RequiredFieldValidator ID="r1" runat="server" ControlToValidate="TextBox1" ErrorMessage="用户名不能为空" ForeColor="Red"/>
    <hr/>
    密码：  <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"/>
    
        <asp:Label ID="Label2" runat="server" Text="" ForeColor="Red"></asp:Label>
    
    <hr/>
    Email:  <asp:TextBox ID="TextBox3" runat="server"/>
    <asp:RequiredFieldValidator ID="r2" runat="server" ControlToValidate="TextBox3" ErrorMessage="邮箱不能为空" ForeColor="Red"/>
    <asp:RegularExpressionValidator ID="r3" ControlToValidate="TextBox3" runat="server" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="格式错误" ForeColor="Red"/>
    <hr/>
    性别：  <asp:DropDownList ID="DropDownList1" runat="server"/>
    <hr/>
    专业： <asp:DropDownList ID="DropDownList2" runat="server"/>
    <hr/>
    <asp:Button ID="Button1" runat="server" Text="注册并跳转" onclick="Button1_Click"/>
    </div>
    </form>
</body>
</html>
